 <?php 
	//echo $_GET['id1'];
	require_once 'includefiles.php';	
	require_once 'model/users.php';
	require_once 'model/state.php';
	
	
	$userObj = new Model_Users();
	$stateObj = new Model_State();
	
if($_GET['id1'] !='')
{
	$job_id = base64_decode($_GET['id1']);	
	$getjobdetail =$userObj->getJobDetailsById($job_id);
	
	if($getjobdetail['area']!='')
	{
		$getpostaldetail = $stateObj->getPostalCodeDetailsByPostalId($getjobdetail['area']);
		$address_arr =$getpostaldetail['suburb'];
	}
}

    require('google_map/GoogleMapAPIforinner.class.php');
    $map = new GoogleMapAPI('map'); 
	
	//$map->setAPIKey('AIzaSyBEDztDHGYOtblfCUpRFcDhXnrzfHaErMI'); //Local
    $map->setAPIKey('ABQIAAAAVcJQrx7VsumiP2heFwp6URQLaiSrhXTkLq3mA9rOmHpVsHwBjxTg7C5-XXHl634dCROpHwKMO9BzmQ'); //demo
	//$map->setAPIKey('ABQIAAAAGcCuz_gp6NTRiTFcpuMcOxQqPLLIlRB5MAQg1O56GW9RTTZEwxS4n9zr_9-Gcr_QE6SM6ZwNmCxhEQ');// live
	
	// Live By Hiraman
  
 // $map->setAPIKey('ABQIAAAAYoZm3GWERhAO-gZspifC-hRYBlMPB73kdBCen5oBZcKvgOkK5BRh_zYyZbARnm1-J0H5GVxNmN4Cag');// live

    $map->setHeight('300'); 
    $map->setWidth('350');
    
	

	$_geocode = $map->addMarkerByCoords($getpostaldetail['lon'],$getpostaldetail['lat'],$address_arr); 
			 
	$map->setControlSize('small');
    $google_map_header=$map->getHeaderJS();
    $google_map_js=$map->getMapJS(); 
    $google_map_sidebar=$map->getSidebar();
    $google_map=$map->getMap(); 
    $onload = $map->getOnLoad(); 
    $zoomlevel=$map->setZoomLevel(10);

    
?>
<?php echo $google_map_header; ?><?php echo $google_map_js; ?>
<?php echo $google_map; echo $onload; echo $zoomlevel; ?>